package com.pxmeta.user.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author wcl
 * @since 2022-07-13
 */
@TableName("kt_user_bill")
@ApiModel(value = "UserBill对象", description = "用户流水表")
@Data
public class UserBill implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("目标id")
    private Long targetId;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("分类")
    private String category;

    @ApiModelProperty("金额")
    private BigDecimal number;

    @ApiModelProperty("正负：1收益，0支出")
    private Integer pm;

    @ApiModelProperty("类型")
    private String type;

    @ApiModelProperty(value = "派对id")
    private Long partyId;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}
